/**
 * Place holder for copyright, needs to be replaced before release.
 */
package com.softao.ming.gwt.core.internal.runtime;

import com.softao.ming.gwt.core.runtime.client.Plugin;
import com.softao.ming.gwt.osgi.client.framework.IBundleContext;

/**
 * Plugin implementation for normal Java Plugin.
 */
public class JMingCoreRuntimePlugin extends Plugin {

	// The shared instance
	private static JMingCoreRuntimePlugin plugin;
	
	/**
	 * The constructor
	 */
	public JMingCoreRuntimePlugin() {
	}

	public void start(IBundleContext context) throws Exception {
		plugin = this;
	}

	public void stop(IBundleContext context) throws Exception {
		plugin = null;
	}

	/**
	 * Returns the shared instance
	 *
	 * @return the shared instance
	 */
	public static JMingCoreRuntimePlugin getDefault() {
		return plugin;
	}
}
